<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 1、typeof 2、精确判断数据类型 3、Array.isArray(); 4、instanceof() 5、constructor
      //1、typeof()基本数据类型除了null以外 ， function
      console.log(typeof function () {})
      console.log(typeof null) //object
      console.log(typeof []) //object
      console.log(typeof {}) //object
      console.log(typeof /\d+/) //object

      console.log(typeof 111)
      console.log(typeof '23232')
      console.log(typeof undefined)
      console.log(typeof false)
      console.log(typeof Symbol(23123))
      console.log(typeof BigInt(3231231))

      console.log(
        Object.prototype.toString.call(function () {
          console.log(1)
        })
      )
      console.log(Object.prototype.toString.call('weqw'))
      console.log(Object.prototype.toString.call(null))
      console.log(Object.prototype.toString.call(undefined))
      console.log(Object.prototype.toString.call(13123))
      console.log(Object.prototype.toString.call(false))
      console.log(Object.prototype.toString.call(Symbol(12312)));
      console.log(Object.prototype.toString.call(BigInt(212142)));
      console.log(Object.prototype.toString.call(/^\d+$/g));
      console.log(Object.prototype.toString.call({}));
      console.log(Object.prototype.toString.call([]));




    </script>
  </body>
</html>
